package com.microHR.hr.service.impl;

import com.microHR.hr.mapper.NationMapper;
import com.microHR.hr.model.Nation;
import com.microHR.hr.model.NationExample;
import com.microHR.hr.service.NationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class NationServiceImpl implements NationService {

    @Autowired
    private NationMapper nationMapper;

    @Override
    public List<Nation> getAllNations() {
        NationExample example = new NationExample();
        return nationMapper.selectByExample(example);
    }
}
